<link href="${rc.getContextPath()}/static/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<style>
<!--
.fromDate span.error {
position: absolute !important;
left: 310px;
}
-->
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/user/save" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <fieldset>
                <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (user.id)??>${user.id!''}</#if>">
                <dl class="nowrap">
                    <div style="float: left; height: 25px; width: 300px;">
                        <label style="width:60px">身份证：</label> <input class="required alphanumeric" name="card" value="<#if (user.card)??>${user.card!''}</#if>" size="20" type="text" maxlength="18" remote="${rc.getContextPath()}/user/checkedUserCardExits?<#if (user.id)??>id=${user.id!''}</#if>"
                        warn="身份证号已经存在"/>
                    
                    </div>
                    <div style="float: left; height: 25px; width: 300px;">
                        <label style="width:60px">用户名称：</label> <input class="required" name="userName" value="<#if (user.userName)??>${user.userName!''}</#if>" size="20" type="text" maxlength="20" />
                    </div>
                </dl>
                <dl class="nowrap">
                    <dd>
                        <div class="tabs" currentIndex="0" eventType="click" style="width: 615px;">
                            <div class="tabsHeader">
                                <div class="tabsHeaderContent">
                                    <ul>
                                        <li><a href="javascript:;"><span>详情</span> </a></li>
                                        <li><a href="javascript:;"><span>联系</span> </a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tabsContent">
                                <div style="height:252px">
                                    <p>
                                        <label>性别：</label><select style="width: 100px" name="sex">
                                        <option value="男" <#if (user.sex)?? && (user.sex == '男')> selected</#if> >男</option>
                                        <option value="女" <#if (user.sex)?? && (user.sex == '女')> selected</#if> >女</option>
                                    </select>
                                    </p>

                                    <p>
                                        <label>用户类型：</label> <select style="width: 100px" name="type">
                                         <option value="">所有</option> <#list userType?keys as key>
                                         <option value="${key}"<#if user.type?? && user.type == key> selected="selected"</#if>>${userType["${key}"]}</option> </#list>
                                        </select>
                                    </p>
                                    <p>
                                        <label>是否缴费：</label> <select style="width: 100px" name="payStatus">
                                        <option value="0" <#if (user.payStatus)?? && (user.payStatus == 0)> selected</#if>>未交费</option>
                                        <option value="1" <#if (user.payStatus)?? && (user.payStatus == 1)> selected</#if>>部分缴费</option>
                                        <option value="2" <#if (user.payStatus)?? && (user.payStatus == 2)> selected</#if>>已缴费</option>
                                        </select>
                                    </p>
                                    <p>
                                        <label>民族：</label> <input  name="nation" value="<#if (user.nation)??>${user.nation!''}</#if>" style="width: 186px" maxlength="20" type="text"/>
                                    </p>
                                    <p>
                                        <label>政治面貌：</label> <input style="width: 186px"  type="text" name="politics" value="<#if (user.politics)??>${user.politics!''}</#if>" maxlength="10" />
                                    </p>
                                    <p>
                                        <label>学校：</label><input type="text" name="school" id="schoolLookUp.name" value="<#if (user.school)??>${user.school!''}</#if>" class="look"
                                                                 suggestFields="code,name" postField="name" suggestUrl="${rc.getContextPath()}/school/suggest" lookupGroup="schoolLookUp" />
                                        <a class="btnLook" href="${rc.getContextPath()}/school/lookup" rel="schoolUp_dialog" title="选择学校" lookupGroup="schoolLookUp" ></a>
                                        <input type="hidden" id="schoolLookUp.code" />
                                    </p>
                                    <#if user.detail??>
                                        <#assign userDetail=user.detail />
                                    </#if>
                                    <#if userDetail??><input type="hidden" name="detail.id" value="${userDetail.id}" /></#if>
                                    <p>
                                        <label>年级：</label><select name="detail.grade">
                                        <#list grades as grade>
                                            <option value="${grade.ecodeText}"<#if userDetail?? && userDetail.grade == grade.ecodeText> selected="selected"</#if>>${grade.ecodeText}</option>
                                        </#list>
                                        </select>
                                    </p>
                                    <p>
                                        <label>班级：</label> <input style="width: 186px"  type="text" maxlength="10" name="detail.team" <#if userDetail??>value="${userDetail.team!''}" </#if> />
                                    </p>
                                    <p>
                                        <label>专业：</label> <input style="width: 186px"  type="text" maxlength="40" name="detail.major" <#if userDetail??>value="${userDetail.major!''}"</#if> />
                                    </p>
                                    <p>
                                        <label>学籍状态：</label>
                                        <select style="width: 200px" name="detail.studentStatus">
                                            <option value="0"<#if userDetail?? && (userDetail.studentStatus == 0)> selected</#if>>注册学籍</option>
                                            <option value="1"<#if userDetail?? && (userDetail.studentStatus == 1)> selected</#if>>已离校</option>
                                            <option value="2"<#if userDetail?? && (userDetail.studentStatus == 2)> selected</#if>>保留学籍</option>
                                        </select>
                                    </p>
                                    <p>
                                        <label>&nbsp;</label> <input type="checkbox" name="enable" value="1"<#if (user.enable)?? && (user.enable == 0)> checked="true"</#if> />锁定
                                    </p>
                                </div>
                                <div width="100%" style="height:252px">
                                    <p>
                                        <label>QQ：</label> <input  name="qq" maxlength="20" value="<#if (user.qq)??>${user.qq!''}</#if>" style="width: 186px" type="text" />
                                    </p>
                                    <p>
                                        <label>微信：</label> <input  type="text" name="weixin" maxlength="50" style="width: 186px"value="<#if (user.weixin)??>${user.weixin!''}</#if>" />
                                    </p>
                                    <p>
                                        <label>电话：</label> <input   name="phone" maxlength="11" value="<#if (user.phone)??>${user.phone!''}</#if>" style="width: 186px" type="text" />
                                    </p>
                                    <p>
                                        <label>E-Mail：</label> <input  name="email" maxlength="50" value="<#if (user.email)??>${user.email!''}</#if>" style="width: 186px" type="text" />
                                    </p>
                                    <p>
                                        <label>紧急联系人：</label> <input  name="detail.linkMan" maxlength="20" value="<#if userDetail??>${userDetail.linkMan!''}</#if>" style="width: 186px" type="text"/>
                                    </p>
                                    <p>
                                        <label>紧急联系电话：</label> <input  name="detail.linkPhone"  maxlength="11" value="<#if userDetail??>${userDetail.linkPhone!''}</#if>" style="width: 186px" type="text" />
                                    </p>
                                    <p>
                                        <label>辅导员：</label> <input  name="detail.instructor" maxlength="20" value="<#if userDetail??>${userDetail.instructor!''}</#if>" style="width: 186px" type="text" />
                                    </p>
                                    <p>
                                        <label>辅导员电话：</label> <input  name="detail.instructorPhone" maxlength="11" value="<#if userDetail??>${userDetail.instructorPhone!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                    <p>
                                        <label>家庭地址：</label> <input  name="detail.homeAdress" maxlength="60" value="<#if userDetail??>${userDetail.homeAdress!''}</#if>" style="width: 256px" type="text"/>
                                    </p>
                                    <p>
                                        <label>宿舍地址：</label> <input  name="detail.dormitoryAddress" maxlength="60" value="<#if userDetail??>${userDetail.dormitoryAddress!''}</#if>" style="width: 256px" type="text" />
                                    </p>
                                </div>
                            </div>
                                
                            <div class="tabsFooter">
                                <div class="tabsFooterContent"></div>
                            </div>
                        </div>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if user??>
            <div style="padding: 0px 10px 10px 10px;">
                <div class="createInfo">
                    <p>
                        <label class="time">创建时间：<#if (user.createAt)??>${user.createAt?string("yyyy-MM-dd HH:mm:ss")}</#if></label>
                        <label class="user">操作人：<#if (user.operator)??>${user.operator}</#if></label>
                    </p>
                </div>
            </div>
        </#if>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive" id="save">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div></li>
                <li>
                    <div class="buttonActiveGrey">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>

    </form>
</div>
